<?php
/**
 * Medical Center Object
 * To be use has a short cut
 *
 */
use Nawa\MedicalCenter;
$xview = Xview::instance();
$id = isset($params['mcid']) ? $params['mcid'] : $xview->val('mcid');
if(empty($id))
{
	$xview->accessDenied();
}
try {
	$mc = new MedicalCenter($id);
	return $mc;
}
catch (Fox\Object\Exception\NotExist $e)
{
	$xview->accessDenied();
}